{classes parentid=$segment.2|default:0 pager=pager order=ordersn}
<div><a href="{$site_admin}{$segment.1}/{$classes.id}" class="menuas">{$classes.title}</a></div>
{/classes}

{if $pager->rows>0}
{literal}
<style> #context_menu { border:1px solid #999; }</style>
{/literal}
{/if}